#ifndef WidgetFactory_H
#define WidgetFactory_H

#include "widgetinterface.h"
#include "shared_global.h"

#include <QList>


class SHAREDSHARED_EXPORT WidgetFactory
{
public:
    WidgetFactory();

    static void addPlugin(QWidgetPluginInterface* plugin);

    static QWidget* create(const QString &name);

    static QList<QWidgetPluginInterface*> interface();
protected:
    static QList<QWidgetPluginInterface*>   m_plugins;
};

#endif // WidgetFactory_H
